package client_gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import client_controllers.CampaignReportsController;
import client_controllers.EmployeeLoginController;
import client_controllers.MarketingManagerController;

public class CampaignReportsGUI extends JFrame {


	private JPanel contentPane;
	private JButton btnBack;
	private JComboBox caId;
	private JButton btnGetReports;
	public static DefaultListModel log;
	/**
	 * Launch the application.
	 */
	
	/**
	 * Create the frame.
	 */
	public CampaignReportsGUI(MarketingManagerController mmc,EmployeeLoginController elc) {
		setTitle("Campaign Report");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		JList list = new JList();
		getContentPane().add(list, BorderLayout.CENTER);
		
		log = new DefaultListModel<>();
		list.setModel(log);
		
		btnBack = new JButton("Back");
		getContentPane().add(btnBack, BorderLayout.SOUTH);
		
		caId = new JComboBox();
		getContentPane().add(caId, BorderLayout.NORTH);
		
		btnGetReports = new JButton("Get reports");
		getContentPane().add(btnGetReports, BorderLayout.EAST);
		this.setVisible(true);
		CampaignReportsController crc = new CampaignReportsController(this,elc,mmc);
	}

	public JButton getBtnBack() {
		return btnBack;
	}

	public JComboBox getCaId() {
		return caId;
	}

	public JButton getBtnGetReports() {
		return btnGetReports;
	}

	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	public void setCaId(JComboBox caId) {
		this.caId = caId;
	}

	public void setBtnGetReports(JButton btnGetReports) {
		this.btnGetReports = btnGetReports;
	}

}
